<div class="box">
  <h3>Resumen de Horas</h3>
  <% form_remote_tag :url  => {:controller => :horas, :action => :resumen} do%>
    <%= select_date Date.today,:discard_day=>true  %>
    <% unless @usuario %>
      <%= select_tag :usuario_id,options_from_collection_for_select(Usuario.activos, :id, :nombre)%>
    <% else %>
      <%= hidden_field_tag :usuario_id,@usuario.id %>
    <% end %>
    <%= select_tag :tipo,options_for_select([['En horas.','cantidad'],['En dinero.','valor']]) %>
    <%= submit_tag "Ver resumen." %>
  <%end  %>
</div>
<div class="box">
  <%= render "horas/resumen",:locals=>{:resumen=>@resumen} %>
</div>